import http from '@/utils/http';
import {baseUrl} from './commonApi'

const paths = {
    getNotices: `${baseUrl}/notice`,
    getDetail: `${baseUrl}/notice/{id}`
};

export function getNotices(data, callback) {
    return http.get(paths.getNotices, { data,noLogin:true }, callback)
}
export function getDetail(id, callback) {
    var tPath = paths.getDetail.replace('{id}', id);
    return http.get(tPath, {noLogin:true} , callback)
}